﻿using AutoMapper;
using Domain.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace ViewModel.CompanyModel
{
    [DisplayName("创建公司")]
    public class CreateCompanyModel
    {
        [DisplayName("公司名称")]
        [Required]
        [StringLength(180)]
        public string Name { get; set; }
        [DisplayName("公司地址")]
        public Address Address { get; set; }

        [DisplayName("公司传真")]
        public string Fix { get; set; }

    }

    public class CreateCompanyModelProfile : Profile
    {
        public CreateCompanyModelProfile()
        {
            CreateMap<Company, CreateCompanyModel>().ReverseMap();
        }
    }

}
